JavaScript

listObj.fieldIsDirty Method

Syntax

listObj.fieldIsDirty(field [, rowNumber]);

Arguments

fieldstring

Field name.

rowNumbernumber

The list row.

Returns

resultboolean

Returns true if the specified field is dirty. Otherwise, returns false.

Description

Returns true if the specified field is dirty. If the rowNumber is not passed in the currently selected row is used. For new records, the field is considered dirty if it is not blank.

Example

var listObj = {dialog.object}.getControl("LIST1");

if (listObj) {
    var dirty = listObj.fieldIsDirty('FIRSTNAME');
    if (dirty) {
        A5.msgBox.show("Field is Dirty","FIRSTNAME field has been modified.","o");
    }
}

Limitations

List Control with Detail View Part

See Also